home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
TCL1
/
CEDITOR_
/
CEDITORP.H1
< prev
next >
Wrap
Text File
|
1990-06-04
|
1KB
|
50 lines
/******************************************************************************
CEditorPane.h
Interface for the EditorPane Class
******************************************************************************/
#define _H_CEditorPane
#include <Commands.h>
#include <CEditText.h>
#include "CEditorTask.h"
#define cmdOffset 30000
#define cmdMyCut (cmdOffset + cmdCut)
#define cmdMyCopy (cmdOffset + cmdCopy)
#define cmdMyPaste (cmdOffset + cmdPaste)
#define cmdMyClear (cmdOffset + cmdClear)
#define cmdMyTyping (cmdOffset + 50)
#define cmdMyDelete (cmdOffset + 51)
struct CEditorPane : CEditText
{
struct CEditorTask *itsCurrentTask;
int itsTaskIndex;
int typing;
void IEditorPane(CView *anEnclosure, CBureaucrat *aSupervisor,
int aWidth, int aHeight,
int aHEncl, int aVEncl,
SizingOption aHSizing, SizingOption aVSizing,
int aLineWidth, int theTaskIndex);
void UpdateMenus();
void DoCommand(long theCommand);
void DoClick(Point hitPt, short modifierKeys, long when);
void DoKeyDown(char theChar, Byte keyCode, EventRecord *macEvent);
void GetSize(long *length, long *lines);
void GetSelection(long *startSel, long *endSel);
void SetSelection(long startSel, long endSel);
void SelectAll(void);
char GetCharacter(long position);
Boolean GetSelectionHandle(Handle *data);
void SetSelectionHandle(Handle data);
void ResetTyping(void);
};